package com.hengpeng.itfinbase.message.sequence;

import com.hengpeng.itfinbase.message.RequestMessage;

/**
 * 获取流水号号请求
 * @author wangtongbin
 */
public class SequenceNoRequest extends RequestMessage
{
	private static final long serialVersionUID = 3619938560447996629L;

	/**
	 * 前缀
	 */
	private String prefix;

	/**
	 * 后缀
	 */
	private String suffix;

	/**
	 * 位数：位数不足时前面补零，为空时则取流水号原值
	 */
	private Integer length;

	/**
	 * 序列号标志名称
	 */
	private String sequenceName;

	/**
	 * 流水号个数
	 */
	private long sequenceCount;

	/**
	 * 流水号最大允许的计数，达到该数后从1重新循环
	 */
	private Long modMaxNum;

	public String getPrefix()
	{
		return prefix;
	}

	public void setPrefix(String prefix)
	{
		this.prefix = prefix;
	}

	public String getSuffix()
	{
		return suffix;
	}

	public void setSuffix(String suffix)
	{
		this.suffix = suffix;
	}

	public Integer getLength()
	{
		return length;
	}

	public void setLength(Integer length)
	{
		this.length = length;
	}

	public String getSequenceName()
	{
		return sequenceName;
	}

	public void setSequenceName(String sequenceName)
	{
		this.sequenceName = sequenceName;
	}

	public long getSequenceCount()
	{
		return sequenceCount;
	}

	public void setSequenceCount(long sequenceCount)
	{
		this.sequenceCount = sequenceCount;
	}

	public Long getModMaxNum()
	{
		return modMaxNum;
	}

	public void setModMaxNum(Long modMaxNum)
	{
		this.modMaxNum = modMaxNum;
	}
}
